package com.human.service.impl;

import com.human.entity.Nation;
import com.human.dao.NationMapper;
import com.human.entity.ResultVo;
import com.human.service.INationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 民族 服务实现类
 * </p>
 *
 * @author jzq
 * @since 2023-02-27
 */
@Service
public class NationServiceImpl extends ServiceImpl<NationMapper, Nation> implements INationService {

    @Resource
    NationMapper nationMapper;

    @Override
    public ResultVo<Nation> getAllNation() {
        List<Nation> nationList = nationMapper.selectList(null);
        return new ResultVo<>(true, "查询成功", nationList);
    }

}
